<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script>
	var num=100;
	function fun1(){
		function fun2(){
			var a=10,b;
			b=num+a; //b=100+10
			return b;
		}
		var a=100;
		var c=a+fun2(); //c=100+110
		console.log("c="+c);
	}
	fun1()
</script>